package cn.bdqn.mallmgr.service.impl;

import cn.bdqn.mallmgr.dao.AddressMapper;
import cn.bdqn.mallmgr.pojo.Address;
import cn.bdqn.mallmgr.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author
 * @create 2022-07-13 15:40
 */
@Service
public class AddressServiceImpl implements AddressService {

    @Resource
    private AddressMapper addressMapper;

    /**
     * 获取下一级地区分类
     *
     * @param addressId 地区id
     * @return java.util.List<cn.bdqn.mallmgr.pojo.Address>
     */
    @Override
    public List<Address> getNextAddress(String addressId) {
        return addressMapper.getNextAddress(addressId);
    }
}
